﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:Jbe.TestSuite.TestDevice.SignalVisualizer.Views" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" 
    x:Class="Jbe.TestSuite.TestDevice.SignalVisualizer.Views.VisualizerView" 
    Height="308.276666666667" Width="342.976666666667" SnapsToDevicePixels="True">
  <Grid>
  	<Grid.ColumnDefinitions>
  		<ColumnDefinition Width="*"/>
  		<ColumnDefinition Width="116.955"/>
  	</Grid.ColumnDefinitions>

    <uc:SignalView HorizontalAlignment="Stretch" Margin="8,8,10,6.277" x:Name="signalView" Background="{x:Null}" BorderThickness="1,1,1,1">
    	<uc:SignalView.BorderBrush>
    		<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ActiveBorderColorKey}}"/>
    	</uc:SignalView.BorderBrush>
    </uc:SignalView>

    <Label d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="8.977,8,0,0" VerticalAlignment="Top" Content="Scale X" Grid.Column="1"/>

    <TextBox Margin="8.977,30,8,0" x:Name="scaleX" VerticalAlignment="Top" Grid.Column="1">
      <TextBox.Text>
        <Binding ElementName="signalView" Path="ScaleX">
          <Binding.ValidationRules>
            <ExceptionValidationRule />
          </Binding.ValidationRules>
        </Binding>
      </TextBox.Text>
    </TextBox>

    <Label d:LayoutOverrides="Width, Height" HorizontalAlignment="Left" Margin="8.977,67,0,0" VerticalAlignment="Top" Content="Scale Y" Grid.Column="1"/>

    <TextBox d:LayoutOverrides="VerticalAlignment" Margin="8.977,90.277,8,0" x:Name="scaleY" VerticalAlignment="Top" Grid.Column="1" TextWrapping="Wrap">
      <TextBox.Text>
        <Binding ElementName="signalView" Path="ScaleY">
          <Binding.ValidationRules>
            <ExceptionValidationRule />
          </Binding.ValidationRules>
        </Binding>
      </TextBox.Text>
    </TextBox>

    <Button Margin="8.977,143,32.228,0" x:Name="reset" Content="Reset" Grid.Column="1" Click="ResetClick" VerticalAlignment="Top" Width="75" Height="23"/>
  </Grid>
</UserControl>

